package net.whzjkj.gateway.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * OBD下发指令参数表
 */
@Data
@Accessors(chain = true)
public class ObdSendParameter extends Model<ObdSendParameter> {

	@TableId(value = "id", type = IdType.ID_WORKER_STR)
	private String id;
	
	@ApiModelProperty("车辆ID")
	private String vehicleId;
	
	@ApiModelProperty("设备ID")
	private String equipmentId;
	
	@ApiModelProperty("指令类型（1、读取 2、设置）")
	private Integer commandType;
	
	@ApiModelProperty("参数类型")
	private String type;
	
	@ApiModelProperty("参数名称")
	private String name;
	
	@ApiModelProperty("原参数值")
	private String oriData;
	
	@ApiModelProperty("参数值")
	private String data;
	
	@ApiModelProperty("返回结果参数值")
	private String returnData;
	
	@ApiModelProperty("返回结果原始参数值")
	private String returnOriData;
	
	@ApiModelProperty("执行状态（1、已缓存3、执行失败4、执行成功5、已取消）")
	private Integer cmdStatus;
	
	@ApiModelProperty("数据类型")
	private String dataType;
	
	private Integer status;
	
}